<title>Fur Jannis upload</title>
<font size="+2"><p>Uploaded File info:</p></font>



<?php

 include("grafikcounter.php");

if ((($_FILES["datei"]["type"] == "image/gif")
|| ($_FILES["datei"]["type"] == "image/jpeg")
|| ($_FILES["datei"]["type"] == "image/pjpeg"))
&& ($_FILES["datei"]["size"] < 4500000))
  {
  if ($_FILES["datei"]["error"] > 0)
    {
    echo "Return Code: " . $_FILES["datei"]["error"] . "<br />";
    }
  else
    {
    echo "Upload: " . $_FILES["datei"]["name"] . "<br />";
    echo "Type: " . $_FILES["datei"]["type"] . "<br />";
    echo "Size: " . ($_FILES["datei"]["size"] / 1024) . " Kb<br />";
    echo "Temp file: " . $_FILES["datei"]["tmp_name"] . "<br />";

    if (file_exists("uploads/" . $_FILES["datei"]["name"]))
      {
      echo $_FILES["datei"]["name"] . " already exists!! ";
      }
    else
      { 
      move_uploaded_file($_FILES["datei"]["tmp_name"],
      "uploads/" .  basename($_FILES["datei"]["name"]));
      echo "Stored in: " . "uploads/" . $_FILES["datei"]["name"];
      }
    }
  }
else
  {
  echo "Invalid file Type!";
  }

?>

<div align="center">Jannis you have uploaded</div>
<div align="center"><?php echo $bild_counter;?>  </div>
<div align="center">Files.</div>

<a href="index2.html"><font size="+3">
<font color="#FF0000"><div align="center">Return</div></font></font></a>

<a href="../../index.html"><font size="+3">
<font color="#000000"><div align="center">Home</div></font></font></a>

<a href="searchfiles.php"><font size="+3">
<font color="#FF0000"><div align="center">Look at Pictures</div></font></font></a>